# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=gotop
pkgver=4.1.3
pkgrel=3
pkgdesc="Terminal based graphical activity monitor"
url="https://github.com/xxxserxxx/gotop"
arch="all"
license="AGPL-3.0-or-later"
options="!check chmod-clean net" # No test suite
depends="procps" # Remove once #20 on xxxserxxx/gotop is fixed
makedepends="git go"
source="$pkgname-$pkgver.tar.gz::https://github.com/xxxserxxx/gotop/archive/v$pkgver.tar.gz
	0001-logging-add-support-for-riscv64.patch
	"

build() {
	mkdir bin
	GOPATH="$srcdir" go build -v -o bin/ ./...
}

package() {
	mkdir -p "$pkgdir"/usr/bin/
	install -m755 ./bin/* "$pkgdir"/usr/bin/
}

sha512sums="
96e8e02bb0a0259b85e8365e77d5f1e0122680725a0ac2f270145fe43180fc521cbf8d8967dfd619fc650b1a2ae456c8575a05f2e6ca6d36f541eda2e731ddca  gotop-4.1.3.tar.gz
53c085dd0e495116e5f8cda6796113630bf27935007098006d164773912f611d2cadfae80aaa12c8796becb77a17ddc5905d26d31b078db9249f5668de93da34  0001-logging-add-support-for-riscv64.patch
"
